@layout("/common/_container.html",{bg:"bg-white",js:["/${g.jsPackage}/${strutil.toLowerCase(g.entityName)}/${strutil.toLowerCase(g.entityName)}_add.js"]}){
<form id="noticeForm" lay-filter="noticeForm" class="layui-form model-form">
    <%for(field in t.fields){%>
    <%if(field.name == g.idName){%>
    <input name="${g.idName}" type="hidden"/>
    <%}else{%>
    <div class="layui-form-item">
        <label class="layui-form-label">${field.chinaName} <%if(field.notNull == 1){%><span style="color: red;">*</span><%}%></label>
        <div class="layui-input-block">
    <%if(field.notNull == 1){%>
        <input name="${field.name}" placeholder="请输入${field.chinaName}" type="text" class="layui-input" lay-verify="required" required/>
    <%}else{%>
        <input name="${field.name}" placeholder="请输入${field.chinaName}" type="text" class="layui-input"/>
    <%}%>
        </div>
    </div>
    <%}%>
    <%}%>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
